import { Navigate, RouteObject } from 'react-router-dom';
import Login from '../views/login';
import Home from '../views/home';

// 定义需要登录权限的路由
export const authRoutes: RouteObject[] = [
  {
    path: '/home',
    element: <Home />,
  }
];

// 定义无需登录权限的路由
export const publicRoutes: RouteObject[] = [
  {
    path: '/login',
    element: <Login />,
  },
  {
    path: '/',
    element: <Navigate to="/home" replace />,
  },
  {
    path: '*',
    element: <Navigate to="/home" replace />,
  }
]; 